#ifndef _IPC_MSG_H_
#define _IPC_MSG_H_


typedef struct
{
    long m_type;
    long len;
    char m_text[0];
} msgbuf_t;


extern int open_msg_queue(int msg_key);
extern int send_msg_to_queue(int msgid, long msg_type, void *msg);
extern int recv_msg_from_queue(int msgid, long msg_type, void *msg);
extern void close_msg_queue(int msgid);

#endif